<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('games', function (Blueprint $table) {
            $table->id();
            $table->string('name')->comment('比赛名称');
            $table->string('status')->comment('状态');
            $table->dateTime('game_start_date')->comment('比赛开始时间');
            $table->string('company_name')->comment('主办单位名称');
            $table->string('address')->comment('比赛地址');
            $table->text('detail')->comment('详情');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('games');
    }
};
